package com.ldu.provider;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class Provider {

	public static void main(String[] args) throws IOException {
		//1. 读取配置文件，加载容器
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-provider.xml");
		//2. 启动容器
		context.start();
		System.out.println("容器已经启动...");
		System.in.read();
		System.out.println("容器已经关闭");
	}
}
